home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWStream / FWBufSin.cpp < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.3 KB  |  42 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWBufSin.cpp
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWFound.hpp"
  11.  
  12. #ifndef FWBUFSIN_H
  13. #include "FWBufSin.h"
  14. #endif
  15.  
  16. #ifdef FW_BUILD_MAC
  17. #pragma segment File
  18. #endif
  19.  
  20.  
  21. //========================================================================================
  22. // CLASS FW_PBufferedSink
  23. //========================================================================================
  24.  
  25. //----------------------------------------------------------------------------------------
  26. //    FW_PBufferedSink::FW_PBufferedSink
  27. //----------------------------------------------------------------------------------------
  28. FW_PBufferedSink::FW_PBufferedSink(Environment* ev, FW_ORandomAccessSink* theSink, long capacity) :
  29.     FW_PRandomAccessSink(ev, new FW_OBufferedSink())
  30. {
  31.     ((FW_OBufferedSink*)GetRep())->InitFromSink(ev, theSink, capacity);
  32. }
  33.  
  34. //----------------------------------------------------------------------------------------
  35. //    FW_PBufferedSink::~FW_PBufferedSink
  36. //----------------------------------------------------------------------------------------
  37. FW_PBufferedSink::~FW_PBufferedSink()
  38. {
  39. }
  40.  
  41.  
  42.